<template>
  <div class="commit">
    <div class="mui-input-row" style="margin: 10px 5px;">
      <textarea id="textarea" rows="5" placeholder="多行文本框" v-model="commit"></textarea>
    </div>
    <button type="button" class="mui-btn mui-btn-primary mui-btn-block" @click='commits'>发表评论</button>
    <button type="button" class="mui-btn mui-btn-danger mui-btn-block mui-btn-outlined" @click="update">加载更多</button>
  </div>
</template>
<script>
export default {
    data() {
        return {
          commit:''
            
        }
    },
    methods: {
        update:function(){
            console.log(1)
        },
        commits:function(){
          if(this.commit!=''){
            console.log(this.commit);
            
          }else{
            console.log('为空');
            
          }
        }
    },
};
</script>
<style scope>
</style>